package com.zhihao.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "zookeeper.sdk.config", ignoreInvalidFields = true)
public class ZookeeperClientConfigProperties {

    /** 状态；open = 开启、close 关闭 */
    private boolean enable;
    // 链接地址
    private String connectString;
    // 基础休眠时间
    private int baseSleepTimeMs;
    // 最大重试次数
    private int maxRetries;
    // 会话过期时间ms
    private int sessionTimeoutMs;
    // 连接过期时间ms
    private int connectionTimeoutMs;

}
